package ast;

import mem.interfaces.IMem;
import environnement.interfaces.IEnv;
import ast.interfaces.IAST;
import ast.interfaces.IASTbool;

public class ASTbool implements IASTbool{

	private boolean b;
	
	public ASTbool(boolean b) {
		super();
		this.b = b;
	}

	public boolean isB() {
		return b;
	}

	public void setB(boolean b) {
		this.b = b;
	}

	@Override
	public Boolean eval(IAST ast,IEnv e, IMem m) {
		return isB();
	}

	@Override
	public String toTreeString(String ident,IEnv e,IMem m) {
		return ident + isB();
	}



}
